package org.bitterorange.flansmodslain.models;

import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class PlayerRankUpEvent extends Event {
    private static final HandlerList Handlers = new HandlerList();
    private final Player Player;
    private final int RankIndex;
    private final String Rank;

    public PlayerRankUpEvent(Player player, int rankIndex, String rank) {
        Player = player;
        RankIndex = rankIndex;
        Rank = rank;
    }

    public static HandlerList getHandlerList() {
        return Handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

    public Player getPlayer() {
        return Player;
    }

    public int getRankIndex() {
        return RankIndex;
    }

    public String getRank() {
        return Rank;
    }
}
